* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
ul li {
  list-style: none;
}
a {
  text-decoration: none;
}
#header {
  position: sticky;
  top: 0;
  z-index: 9;
}
a {
  text-decoration: none;
  color: inherit;
}
/* 布局样式 */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 搜索容器 */
.search-container {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0;
}
/* 搜索输入框区域 */
.search-input {
  display: flex;
  margin: 16px 0;
  padding: 0 16px;
}
.search-input input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
}
.search-button {
  height: 40px;
  margin: 0 16px;
  padding: 0 20px;
  border: none;
  border-radius: 4px;
  background-color: #1f548e;
  color: white;
  cursor: pointer;
  font-size: 14px;
}
/* 标签切换 */
.tab-item {
  display: flex;
  margin-bottom: 16px;
  padding: 0 16px;
  justify-content: center;
}
.tab-item button {
  margin: 0 8px;
  padding: 10px 20px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  font-size: 14px;
}
.tab-item button.active {
  background-color: #1f548e;
  color: white;
  border-color: #1f548e;
}
/* 搜索结果列表 */
.search-list {
  position: relative;
  display: block;
  height: 200px;
  background-color: white;
  padding: 16px 16px 16px 248px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s;
}
.search-list .image {
  position: absolute;
  width: 216px;
  height: 163px;
  top: 16px;
  left: 16px;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transition: all 0.3s;
  object-fit: cover;
}
.search-list .title {
  display: block;
  max-width: 100%;
  font-size: 18px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-list .description {
  font-size: 14px;
  color: #999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-list::before {
  position: absolute;
  display: block;
  width: calc(100% - 32px);
  border-top: 1px solid #ebeef5;
  left: 16px;
  bottom: 0;
  transform: scaleY(0.5);
  content: '';
}
/* 空状态 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  background-color: white;
}
.empty p {
  margin-top: 16px;
  color: #909399;
}
/* 移动端适配 */
@media (max-width: 768px) {
  .search-list {
    height: 120px;
    padding-left: 146px;
  }
  .search-list .image {
    width: 114px;
    height: 86px;
  }
  .search-list .title {
    font-size: 16px;
  }
  .tab-item {
    flex-wrap: wrap;
  }
  .tab-item button {
    margin: 4px;
  }
}
@media (max-width: 68.75rem) {
  footer {
    transition: 0.3s;
    display: none;
  }
}
